// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWidgets headers)
#ifndef WX_PRECOMP
    #include "wx/wx.h"
#endif

#include "DRenderWindow.h"



DRenderWindow::DRenderWindow(wxWindow *parent)
	:wxPanel(parent, 0, 0 ,0, 0, wxBORDER_SUNKEN)
{
	// toolbar setup
	this->m_toolbar = new wxToolBar(this, -1);
	m_toolbar->Realize();

	// render panel setup
	this->m_renderpanel = new DRenderFrame(this);

	// sizer setup
	wxBoxSizer *sz = new wxBoxSizer(wxVERTICAL);
	sz->Add(m_toolbar, 0, 0);
	sz->Add(m_renderpanel, 1, wxEXPAND);

	this->SetSizer(sz);
}

DRenderWindow::~DRenderWindow(void)
{
	
}
